import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-07-09
 * Time: 18:47
 */
public class test4 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String str = in.nextLine();
            String[] strs = str.trim().split(" ");
            // System.out.println(strs.length);
            StringBuilder sb = new StringBuilder();
            for(int i=0;i<strs.length;i++){
                String s = strs[i];
                char c = s.charAt(0);
                sb.append(c);
            }
            str = sb.toString().toUpperCase();
            System.out.println(str);
        }
    }
}
